package com.lch.designpattern.factory.abstractfactory;

import com.lch.designpattern.factory.BenzCar;
import com.lch.designpattern.factory.ICar;

/**
 * @author: liuchenhui
 * @create: 2019-04-14 20:15
 **/
public class BenzFactory implements IFactory {
    @Override
    public ICar createCar() {
        return new BenzCar();
    }

    @Override
    public ITyre createTyre() {
        return new BenzTyre();
    }

    @Override
    public IEngine createEngine() {
        return new BenzEngine();
    }
}
